#ifndef AST_EXPRESSION_CONSTANT_EXPR_H
#define AST_EXPRESSION_CONSTANT_EXPR_H

#include "../ASTNode.h"
class ConditionalExpr;
/*
C99 6.6
constant-expression:
		conditional-expression;
*/
class ConstantExpr : public ASTNode
{
protected:
	ConstantExpr(void) 
		: ASTNode(ASTNode::constant_expression){}
public:
	ConstantExpr(ConditionalExpr * pCondExpr)
		: ASTNode(ASTNode::constant_expression)
		, m_pCondExpr(pCondExpr){};

	virtual ~ConstantExpr(void);

	virtual void							codeGen();

protected:
	ConditionalExpr *					m_pCondExpr;
};
#endif


